import request from '../utils/request';
import { parse } from 'querystring';
import { REST,BASE } from '../utils/Api';

export async function fetchMenus() {
  return request(`${BASE}/config/object/getStandardConfig`, {
    method: 'GET',
  });
}

//通过session，获取当前的登录用户
export async function fetchLoginUser() {
  return request(`${REST}/user/fetchBySession`, {
    method: 'POST',
    params: {},
  });
}